import Layout from '@/layout'

const rightsRouter = {
  path: '/rights',
  component: Layout,
  redirect: '/rights/list',
  name: 'rights',
  meta: { 
    alwaysShow: true,
    title: 'rights', 
    icon: 'rights', 
    permission: ['rights_103_01']
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/rights/list'),
      name: 'rights_list',
      meta: { 
        title: 'rights_list',
        permission: ['rights_112_02']
      },   
    },
    {
      path: 'roles',
      component: () => import('@/views/rights/roles'),
      name: 'rights_roles',
      meta: { 
        title: 'rights_roles',
        permission: ['roles_111_02']
      },   
    },
    {
      path: 'role_rights/:roleId',
      component: () => import('@/views/rights/permission'),
      name: 'role_rights',
      meta: { 
        hidden: true,
        title: 'role_rights',
        activeMenu: '/rights/roles',
        permission: ['roles_134_03']
      },   
    },
  ]
}

export default rightsRouter
